<?php

namespace app\api\exception;

use think\exception\HttpException;

class Exception extends HttpException {

  public $status;

  public function __construct($message, $status = null, $code = 400) {
    $this->status = $status ?? config('status.error');
    parent::__construct($code, $message);
  }

}